<?php include '_init_.php';?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
<?php
$id = $_REQUEST['id'];
$orderManager = Order_Manager::getOrderManager($_REQUEST['id']);
if(!$orderManager)
	exit('Data not exist anymore');
	/*
if($orderManager->getStatus() != Order_Manager::$STATUS_CREATING)
{
	exit("Order doesn't editable");
}*/
$orderManager->init();
$orderInfo = $orderManager->getInfo();
$priceInfo = $orderInfo['price'];
$fee_list = $priceInfo['fee_list'];
?>
<div class="mainf-8">
  <ul>
  <li class="maina-1k">消費明細</li>
<li class="mainf-1m"><img src="images/line5.gif" width="676" height="7" align="top" /></li>
<li class="mainf-1f3" style="font-weight:bold;">本組費用<img src="images/line3.gif" width="21" height="12" /><?php echo $fee_list['catalog'];?>元</li>
<?php if($fee_list['add_disk'] > 0):?>
<li class="mainf-1n">增加數位光碟<?php echo $fee_list['add_disk_number'];?>組<img src="images/line3.gif" width="21" height="12" /> <?php echo $fee_list['add_disk'];?>元</li>
<?php endif;?>
<?php if($fee_list['benzu_style'] > 0):?>
<li class="mainf-1n">增加相本樣式<?php echo $fee_list['benzu_style_number'];?>本<img src="images/line3.gif" width="21" height="12" /><?php echo $fee_list['benzu_style'];?>元</li>
<?php endif;?>

<?php if($fee_list['add_person'] > 0):?>
<li class="mainf-1n">增加拍攝人數（成人）<?php echo $fee_list['add_person_number'];?>人<img src="images/line3.gif" width="21" height="12" /><?php echo $fee_list['add_person'];?>元</li>
<?php endif;?>
<?php if($fee_list['add_dress'] > 0):?>
<li class="mainf-1n">增加服裝造型（成人）<?php echo $fee_list['add_dress_number'];?>套<img src="images/line3.gif" width="21" height="12" /><?php echo $fee_list['add_dress'];?>元</li>
<?php endif;?>

<?php if($fee_list['add_person2'] > 0):?>
<li class="mainf-1n">增加拍攝人數（小孩）<?php echo $fee_list['add_person2_number'];?>人<img src="images/line3.gif" width="21" height="12" /><?php echo $fee_list['add_person2'];?>元</li>
<?php endif;?>
<?php if($fee_list['add_dress2'] > 0):?>
<li class="mainf-1n">增加服裝造型（小孩）<?php echo $fee_list['add_dress2_number'];?>套<img src="images/line3.gif" width="21" height="12" /><?php echo $fee_list['add_dress2'];?>元</li>
<?php endif;?>
<?php if($fee_list['benzu_customize_price'] > 0):?>
<li class="mainf-1n">修改像本增加差價:<?php echo $fee_list['benzu_customize_price'];?>元</li>
<?php endif;?>

<?php if( $fee_list['zoom'] > 0):?>
<li class="mainf-1n">增加放大<?php echo $fee_list['zoom_number'];?>組<img src="images/line3.gif" width="21" height="12" /><?php echo $fee_list['zoom'];?>元</li>
<?php endif;?>

<?php if( $fee_list['zoom_frame'] > 0):?>
<li class="mainf-1n">增加相框<?php echo $fee_list['zoom_frame_number'];?>個<img src="images/line3.gif" width="21" height="12" /><?php echo $fee_list['zoom_frame'];?>元</li>
<?php endif;?>
<?php if( is_array($fee_list['gift_detail']) && is_array($fee_list['gift_detail']) && !is_string($fee_list['gift_detail'][0])):?>
<?php foreach($fee_list['gift_detail'] as $tmpData):?>
<li class="mainf-1n"><?php echo $tmpData['name'];?>X<?php echo $tmpData['number'];?><img src="images/line3.gif" width="21" height="12" /><?php echo $tmpData['price'];?>元</li>
<?php endforeach;?>
<?php endif;?>
<?php if($fee_list['discountPrice'] > 0):?>
<li class="mainf-1f3">折扣<img width="21" height="12" src="images/line3.gif"><?php echo $fee_list['discountPrice'];?>元</li>
<?php endif;?>

<li class="mainf-1f3" style="font-weight:bold;">消費總金額<img width="21" height="12" src="images/line3.gif"><?php echo $priceInfo['total'];?>元</li>
  </ul>
</div>
</body>
</html>
